layui.use(['layer'],function () {
    var $ = layui.jquery;
    var layer=layui.layer;

    var uid=$('#uid').text();
    window.sessionStorage.setItem("uid",uid);

    $('#return').click(function () {
        $.ajax({
            type: 'post',
            url:'/Anime/userIndex/onload',
            dataType: 'json',
            success:function (res) {
                if (res.code==0)
                {
                    window.location.href = "/Anime/home/main";
                }
                else {
                    layer.msg("返回失败");
                }
            }
        })
    })
})